//: ValidatePaymentController.java 01.10.2008 14:44:48Z apt $
package com.devunion.salon.ajax.handler;

import com.devunion.salon.web.form.PaymentForm;
import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Timoshenko Alexander
 */
public class ValidatePaymentController extends SimpleFormController {
    protected Map referenceData(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("paymentForm", new PaymentForm());

        return map;
    }

    protected ModelAndView onSubmit(Object command, BindException errors) throws Exception {
        return super.onSubmit(command, errors);
    }
}
